<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('步骤明细列表')" />
</head>
<body class="gray-bg">
     <div class="container-div" th:object="${rnExecutionLog}">
         <input name="id" th:field="*{id}" type="hidden">
         <div class="row" style="height: 350px;">
             <div class="col-sm-6" style="height: 350px;">
                 <img src=""  alt="kettle图片" height="350px" width="100%"id="imagePath"/>
             </div>

             <div class="col-sm-6" style="height: 350px;">
                 <textarea type="text" name="executionLog" class="form-control" rows="20" style="width:100%; height:350px" th:text="${rnExecutionLog.executionLog}"></textarea>
             </div>
         </div>
        <div class="row">
            <div class="col-sm-12 search-collapse" style="display: none">
                <form id="formId" >
                    <input type="hidden" id="taskId" name="taskId" th:value="*{id}">
                </form>
            </div>

            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>



    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('kettle:stepstatus:edit')}]];
        var removeFlag = [[${@permission.hasPermi('kettle:stepstatus:remove')}]];
        var prefix = ctx + "kettle/executeLog/stepStatus";

        $(function() {
            var imageUrl = ctx+"kettle/executeLog/image?id="+$("#id").val();
            $("#imagePath").attr("src",imageUrl);
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "步骤明细",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id', 
                    title: 'id',
                    visible: false
                },

                {
                    field: 'stepName', 
                    title: '步骤名称'
                },
                {
                    field: 'copy', 
                    title: 'CopyNr'
                },
                {
                    field: 'linesRead', 
                    title: '读'
                },
                {
                    field: 'linesWritten', 
                    title: '写'
                },
                {
                    field: 'linesInput', 
                    title: '输入'
                },
                {
                    field: 'linesOutput', 
                    title: '输出'
                },
                {
                    field: 'linesUpdated', 
                    title: '更新'
                },
                {
                    field: 'linesRejected', 
                    title: '拒绝'
                },
                {
                    field: 'logErrors', 
                    title: '错误'
                },
                {
                    field: 'statusDescription', 
                    title: 'Active'
                },
                {
                    field: 'logSeconds', 
                    title: '耗时'
                },
                {
                    field: 'speed', 
                    title: '速度'
                },
                {
                    field: 'logPriority', 
                    title: 'pr/in/out'
                },
                ]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>